﻿using CPPEI.Coolzon.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CPPEI.Coolzon.DataProvider
{
    /// <summary>
    /// 数据提供器接口
    /// </summary>
    public interface IDataProvider
    {
        /// <summary>
        /// 获取数据
        /// </summary>
        /// <param name="dataSource">数据源定义</param>
        /// <param name="dataSet">数据集定义</param>
        /// <param name="parameters">参数实例列表</param>
        /// <returns>数据结果</returns>
        DataResult QueryData(CPPEI.Coolzon.Metadata.DataSource dataSource, CPPEI.Coolzon.Metadata.DataSet dataSet, List<QueryParameter> parameters);
    }
}
